package com.red.wood.module.ircs.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.red.wood.module.ircs.dao.IrcsHouseInfoDao;
import com.red.wood.module.ircs.service.IrcsHouseInfoService;

@Service
@Transactional
public class IrcsHouseInfoServiceImpl implements IrcsHouseInfoService{

	@Autowired
	private IrcsHouseInfoDao dao;

	@Override
	public Map<String, Object> getPageData(Map<String, Object> param) {
		return dao.getPageData(param);
	}

	@Override
	public Map<String, Object> getDetailInfo(String houseId,String ircsId) {
		List<Map<String,Object>> list = dao.getDetailInfo(houseId,ircsId);
		Map<String,Object> map = new HashMap<String,Object>();
		if(list != null && list.size() > 0) {
			map = list.get(0);
		}
		return map;
	}
}
